bitkeeper revision 1.339 (3f0d6d60VROcPVK9573_fpTcuFCUXg)
authorrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>
Thu, 10 Jul 2003 13:42:56 +0000 (13:42 +0000)
committerrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>
Thu, 10 Jul 2003 13:42:56 +0000 (13:42 +0000)
Rename domctl.xml to xenctl.xml

.rootkeys
tools/control/Makefile
tools/control/build-cmdline.xml
tools/control/doc/INSTALL-cmdline
tools/control/doc/INSTALL-web
tools/control/doc/USAGE-cmdline
tools/control/domctl.xml [deleted file]
tools/control/src/org/xenoserver/cmdline/ParseDomainNew.java
tools/control/src/org/xenoserver/control/Settings.java
tools/control/xenctl
tools/control/xenctl.xml [new file with mode: 0644]

index 7566af593aca3cec9b6d51f0af06debaa040f735..037fbbc3f8f917887ef96d00f5e3d7cfd1b86116 100644 (file)
--- a/.rootkeys
+++ b/.rootkeys
@@ -13,7 +13,6 @@
 3f0d61da3O5gkcntbIOdUmN2-RcZbQ tools/control/doc/INSTALL-cmdline
 3eca6a96a31IwaKtkEa4jmzwTWlm8Q tools/control/doc/INSTALL-web
 3f0d61daCTHGCpQK0Brz3PAp80d_2Q tools/control/doc/USAGE-cmdline
-3eb781fcabCKRogwxJA3-jJKstw9Vg tools/control/domctl.xml
 3f042c35FzVap5QW0UBPnZ2ZM0l3QA tools/control/src/org/xenoserver/cmdline/CommandParser.java
 3eb781fdNQvEJW3tNvovjqoN7GlePA tools/control/src/org/xenoserver/cmdline/Main.java
 3f042c35-TPgpCQViIaJzLts2-CnBw tools/control/src/org/xenoserver/cmdline/ParseDomainDestroy.java
 3ec41f7ek1RffqN2yRUzSTkD5m1J6w tools/control/web/tmpl/xenohead.def
 3ec41f7e1ZpfCsgQ2qRJBooBn_iRtA tools/control/web/tmpl/xenostyle.css
 3eb781fc6vgq5yhkJRGDLY9gWWRY2A tools/control/xenctl
+3eb781fcabCKRogwxJA3-jJKstw9Vg tools/control/xenctl.xml
 3eb781fdl4lXWYZzmqDDUAYhAThRqQ tools/internal/Makefile
 3eb781fdc539MQQm47rYRCCR3N5i-Q tools/internal/dom0_defs.h
 3ee609b3Yr4aggmLSKmhiIzT8-nURA tools/internal/dom0_ops.h
index c302e55b06a4f705a77a6c81f3cc0f2c1e1e6e9d..46ab52aa27f95517ccbcffa3e95b8e9077de8552 100644 (file)
@@ -9,7 +9,7 @@ clean: clean-cmdline clean-web
 cmdline: FORCE
        ant -buildfile build-cmdline.xml dist
 
-install-cmdline: domctl
+install-cmdline: cmdline
        cp xenctl-cmdline.jar xenctl ../../../install/bin
        chmod 755 ../../../install/bin/xenctl
 
index 4cf6fbfc39b3b9fdec97addc56864d12b847b2a1..56c2af143ae9105c0780219d74be149db5aae008 100644 (file)
@@ -25,7 +25,7 @@
       <fileset dir=".">
         <include name="build-cmdline.xml"/>
         <include name="xenctl"/>
-        <include name="domctl.xml"/>
+       <include name="xenctl.xml"/>
         <include name="Makefile"/>
       </fileset>
       <manifest>
@@ -47,4 +47,4 @@
   <target name="clean">
     <delete dir="${build}"/>
   </target>
-</project>
\ No newline at end of file
+</project>
index 74db2236ad28a8cbdb50e1817e39b0858302d5c4..4290631e2906fe960da4eae43aaf19f5edd17981 100644 (file)
@@ -3,9 +3,12 @@ To install command line interface:
 cd xeno.bk/tools/control
 make cmdline
 cp xenctl xenctl-cmdline.jar <dom0>/usr/local/bin
-cp domctl.xml <dom0>/etc
+cp xenctl.xml <dom0>/etc
 mkdir <dom0>/var/lib/xen
 
 First invocation of command line interface will give a warning about not being
 able to load the disk state from /var/lib/xen/vdstate.xml. This is ok, it'll
-be created the first time you change any state in the virtual disk manager.
\ No newline at end of file
+be created the first time you change any state in the virtual disk manager.
+
+If you already have /etc/domctl.xml you can rename it to xenctl.xml to keep
+your existing defaults.
index be97a0db0fe7dc9fb26afe7149344c3713f683c5..af844c02227c323e5c7e3335c139b84c6c68be83 100644 (file)
@@ -29,11 +29,11 @@ to setup:
  ## install the xenctl web archive
  cp xeno.bk/tools/control/dist/xenctl-0.1-dev.war $CATALINA_HOME/webapps/xenctl.war
  # Only if you have not already copied this file for the command line tool
- cp xeno.bk/tools/control/domctl.xml /etc
+ cp xeno.bk/tools/control/xenctl.xml /etc
  # If it doesn't exist:
  mkdir /var/lib/xen
 
- ## either edit xi_tools_dir in domctl.xml or copy the binaries
+ ## either edit xi_tools_dir in xenctl.xml or copy the binaries
  ## unless already installed for the command line tool
  # find xeno.bk/tools/internal -perm +111 -type f -exec cp {} /usr/local/bin \;
 
index 189577987dcfadc3fb9f40862799b445cc66abca..440e31e1d4d87cb80e50690073bd61991017c6f9 100644 (file)
@@ -27,10 +27,11 @@ Domain control
 --------------
 
 xenctl's command line interface is based on domctl. Defaults for domain
-creation are found in /etc/domctl.xml.
+creation are found in /etc/xenctl.xml which has the same format as the
+old domctl.xml
 
 Creating a domain: xenctl domain new <parameters>
-All parameters may be omitted to get defaults from domctl.xml, see help
+All parameters may be omitted to get defaults from xenctl.xml, see help
 for ful details of available parameters.
 
 Starting a domain: xenctl domain start -n<domain_no>
diff --git a/tools/control/domctl.xml b/tools/control/domctl.xml
deleted file mode 100644 (file)
index 77bd5dc..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0"?>
-<domctl_defaults>
-<xi_tools_dir>/usr/local/bin/</xi_tools_dir>
-<domain_name>XenoLinux</domain_name>
-<domain_size_kb>16000</domain_size_kb>
-<domain_image>./image</domain_image>
-<domain_vifs>1</domain_vifs>
-<root_device>/dev/nfs</root_device>
-<nw_ip>=+</nw_ip>
-<nw_gw>=</nw_gw>
-<nw_mask>=</nw_mask>
-<nw_nfs_server>128.232.32.20</nw_nfs_server>
-<nw_nfs_root>/usr/groups/srgboot/moonraider/roots/root+</nw_nfs_root>
-<max_domain_number>10</max_domain_number>
-</domctl_defaults>
index 080e8a3d2b138693b0278099d3044aa24b8a3ada..910ffc01ea886a245bd01d190a9e107a9efce6f5 100644 (file)
@@ -59,7 +59,7 @@ public class ParseDomainNew extends CommandParser {
     public String getHelpText() {
         return "Create a new domain.  Note that most of the parameters will assume\n"
             + "default values: it should not be necessary to specify them all. See\n"
-            + "domctl.xml for the current default settings.\n"
+            + "xenctl.xml for the current default settings.\n"
             + "\n"
             + "General command line options:\n"
             + "  -n  Domain name                              domain_name\n"
index 4d9ca628cc3237f75bdeec0214ad937142721391..02cdbdecd6ae716d20fe74adc07e3c7dbf0853cb 100644 (file)
@@ -10,7 +10,7 @@ import java.util.StringTokenizer;
 public final class Settings {
     /** Filename for the defaults file. */
     public static final String DEFAULTS_FILE =
-        System.getProperty("DEFAULTS_FILE", "domctl.xml");
+        System.getProperty("DEFAULTS_FILE", "xenctl.xml");
     /** Path to search for the defaults file. */
     public static final String DEFAULTS_PATH =
         System.getProperty("DEFAULTS_PATH", ".:/etc:/var/lib/xen");
index 3516bc2fc8a50b34d2414c1c64f632308dc43717..9b30b81617f4e73400665018d1c02df8551d75c5 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash 
 
-if [ -z "$DEFAULTS_FILE" ] ; then DEFAULTS_FILE=domctl.xml ; fi
+if [ -z "$DEFAULTS_FILE" ] ; then DEFAULTS_FILE=xenctl.xml ; fi
 if [ -z "$DEFAULTS_PATH" ] ; then DEFAULTS_PATH=.:/etc:/var/lib/xen ; fi
 if [ -z "$QUERY_DEV" ] ; then QUERY_DEV=eth0 ; fi
 if [ -z "$IFCONFIG" ] ; then IFCONFIG=/sbin/ifconfig ; fi
diff --git a/tools/control/xenctl.xml b/tools/control/xenctl.xml
new file mode 100644 (file)
index 0000000..77bd5dc
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<domctl_defaults>
+<xi_tools_dir>/usr/local/bin/</xi_tools_dir>
+<domain_name>XenoLinux</domain_name>
+<domain_size_kb>16000</domain_size_kb>
+<domain_image>./image</domain_image>
+<domain_vifs>1</domain_vifs>
+<root_device>/dev/nfs</root_device>
+<nw_ip>=+</nw_ip>
+<nw_gw>=</nw_gw>
+<nw_mask>=</nw_mask>
+<nw_nfs_server>128.232.32.20</nw_nfs_server>
+<nw_nfs_root>/usr/groups/srgboot/moonraider/roots/root+</nw_nfs_root>
+<max_domain_number>10</max_domain_number>
+</domctl_defaults>